package com.wangzaiplus.test.juc.thread.condition;

import java.util.LinkedList;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @ClassName BlockingQueueDemo
 * @Description: TODO
 * @Author wgc
 * @Date 2020/06/29 10:45
 * @Version V1.0
 **/
public class BlockingQueueDemo {
    int size ;//阻塞队列最大容量
    ReentrantLock lock =new ReentrantLock();
    LinkedList linkedList=new LinkedList();
    Condition notFull=lock.newCondition();//队列满的时候等待
    Condition notEmpty=lock.newCondition();//队列空的时候等待
    public BlockingQueueDemo(int size){
     this.size=size;
    }

    /*public void enqueue(E e){

    }*/

}
